package com.huayun.plugin.fastenerLibrary.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "fastenerLibrary")
public class FastenerLibrary {
    @Id
    private String _id;
    private String partNumber;
    private Double weight;
    private Double length;
    private Double density;
    private String material;
    private String fastenerPartNumber;

    public String getId() {
        return _id;
    }

    public void setId(String id) {
        this._id = id;
    }

    public String getPartNumber() {
        return partNumber;
    }
    public void setPartNumber(String number) {
        this.partNumber = number;
    }

    public Double getWeight() {
        return weight;
    }
    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getLength() {
        return length;
    }
    public void setLength(Double length) {
        this.length = length;
    }

    public Double getDensity() {
        return density;
    }
    public void setDensity(Double density) {
        this.density = density;
    }

    public String getMaterial() {
        return material;
    }
    public void setMaterial(String material) {
        this.material = material;
    }
    public String getFastenerPartNumber() {
        return fastenerPartNumber;
    }
    public void setFastenerPartNumber(String fastenerPartNumber) {
        this.fastenerPartNumber = fastenerPartNumber;
    }

    //用来方便打印和查看数据
    @Override
    public String toString() {
        return "FastenerLibrary{" +
                "_id='" + _id + '\'' +
                ", partNumber='" + partNumber + '\'' +
                ", weight='" + weight + '\'' +
                ", length='" + length + '\'' +
                ", density='" + density + '\'' +
                ", material='" + material +
                '}';
    }
}
